class AddData < ActiveRecord::Migration
  def self.up
    c1 = Category.create(:category_name => "Category A")
    c2 = Category.create(:category_name => "Category B")

    Subcategory.create(:subcategory_name => "Sub A", :category_id =>c1.id)
    Subcategory.create(:subcategory_name => "Sub B", :category_id =>c1.id)
    Subcategory.create(:subcategory_name => "Sub C", :category_id =>c1.id)
    Subcategory.create(:subcategory_name => "Sub D", :category_id =>c2.id)
    Subcategory.create(:subcategory_name => "Sub E", :category_id =>c2.id)
  end

  def self.down
  end
end
